package resources;

public class  Monier {

	   private String Htype;
	   //eg: H1, H1A etc.
       private String h_srs, h_root, key1, key2; 
       //single replacement sandhi, root for verbs, word, additional info on word
       private String c;
       // to be combined and saved in c as meaning
       private String synonym, etym;
       // synonym from <eq/> tag
       
       
       public Monier() {
    	   Htype = null;
   		this.h_srs = null;
   		this.h_root = null;
   		this.key1 = null;
   		this.key2 = null;
   		this.c = "";
   		this.synonym = null;
   		this.etym = null;
       }

       public String getHtype() {
		return Htype;
	}

	public void setHtype(String htype) {
		Htype = htype;
	}

	public String getH_srs() {
		return h_srs;
	}

	public void setH_srs(String h_srs) {
		this.h_srs = h_srs;
	}

	public String getH_root() {
		return h_root;
	}

	public void setH_root(String h_root) {
		this.h_root = h_root;
	}

	public String getKey1() {
		return key1;
	}

	public void setKey1(String key1) {
		this.key1=key1;
	}

	public String getKey2() {
		return key2;
	}

	public void setKey2(String key2) {
		this.key2 = key2;
	}

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c= new StringBuilder(getC()).append(" ").append(c).toString();
	}

	public String getSynonym() {
		return synonym;
	}

	public void setSynonym(String synonym) {
		this.synonym = synonym;
	}

	public String getEtym() {
		return etym;
	}

	public void setEtym(String etym) {
		this.etym = etym;
	}

	
	
	public String toString() {
              StringBuffer sb = new StringBuffer();
              sb.append("H type:" + getHtype());
              sb.append(", ");
              sb.append("Word:" + getKey1());
              sb.append(", ");
              sb.append("Meaning:" + getC());
              sb.append(", ");
              sb.append("h_root:" + getH_root());
              sb.append(", ");
              sb.append("synonym:" + getSynonym());
              sb.append(", ");
              sb.append("Etym:" + getEtym());
              sb.append(". ");
              

              return sb.toString();
       }
}

